<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<base href="<%=basePath%>" />
<title>文件上传</title>
 <link rel="stylesheet" type="text/css" href="static/css/uploadify_2.x.css">
<script type="text/javascript" src="static/javascript/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="static/javascript/jquery.uploadify.js"></script>
<script type="text/javascript">
	$(document).ready(function()
		{
		$('#fileupload').fileUpload(
				{'uploader':'static/swf/uploader_2.x.swf',
				 'script':'Upload.action',
				 'fileDataName':'fileupload',
				 'auto':true,
				 'buttonText':'select',
				 'cancelImg':'static/img/uploadify-cancel.png',
				 'onAllComplete':function(file,data,response)
				 {
					 alert('上传成功'+data);
				 }
				}
		);
	});

</script>
</head>

<body>

	<div>
		<input type="file" name="fileupload" id="fileupload" />
		<input type="button" name="upload" value="文件上传">
	</div>

	<div id="foot" class="Area">Copyright &#169; 2012 neupioneer.com
		Inc. All Rights Reserved. GLAMOUR <span class="unline"><a
			href="#" target="_blank">版权所有</a> </span> <br>
	</div>
</body>
</html>
